/*
* @ Author: Somerst Zhai
* @ Data: 2018-10-16 15:52:37
* @ Revision: 1.0
* @ Purpose: 将接口统一起来便于维护
* */

import axios from './axiosAPi'

export const query = (options) => {
  return axios({
    url: options.url,
    method: 'get',
    params: options.params
  })
}

export const upload = (options) => {
  return axios({
    url: options.url,
    method: 'post',
    // params: options.params,
    data: options.data
  })
}

export default{
  query,
  upload
}
